const TokenKey = "App-Token";
const WeappKey = "Weapp-Token";
// 获取token
export function getToken() {
  return localStorage.getItem(TokenKey);
}
// 设置token
export function setToken(token) {
  return localStorage.setItem(TokenKey, token);
}
// 删除token
export function removeToken() {
  return localStorage.removeItem(TokenKey);
}

// 获取小程序token
export function getWeappToken() {
  return localStorage.getItem(WeappKey);
}
// 设置小程序token
export function setWeappToken(token) {
  return localStorage.setItem(WeappKey, token);
}
// 删除小程序token
export function removeWeappToken() {
  return localStorage.removeItem(WeappKey);
}
